<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE>
<html>
<head>
    <title></title>
</head>

<body>
   <h1>帖子列表</h1>
   <form action="${pageContext.request.contextPath}/show" method="post">
       帖子标题 <input type="text" name="title" value="${title}">
       <input type="submit"value="提交">
   </form>
    <table border="1">
        <tr>
            <th>标题</th>
            <th>内容摘要</th>
            <th>作者</th>
            <th>发布时间</th>
        </tr>
        <c:forEach items="${invitas}" var="i">
            <tr>
                <td>${i.title}</td>
                <td>${i.summary}</td>
                <td>${i.author}</td>
                <td>${i.createdate}</td>
            </tr>
        </c:forEach>
    </table>
</body>
</html>